<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client\Filter;

class ApiFilter
{
    public static function serviceCode($serviceCode)
    {
        if(!is_string($serviceCode)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Service Code must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($serviceCode === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Service Code cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $serviceCode;
    }
    public static function endpointType($endpointType)
    {
        if(!is_string($endpointType)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Endpoint Type must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($endpointType === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Endpoint Type cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $endpointType;
    }
    public static function action($action)
    {
        if(!is_string($action)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Action must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($action === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Action cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $action;
    }
    public static function endpointSuffix($endpointSuffix)
    {
        if(!is_string($endpointSuffix)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Endpoint Suffix must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($endpointSuffix === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Endpoint Suffix cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $endpointSuffix;
    }
    public static function network($network)
    {
        if(!is_string($network)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Network Suffix must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($network === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Network Suffix cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $network;
    }
    public static function version($version)
    {
        if(!is_string($version)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Version must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($version === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Version cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $version;
    }
    public static function format($format)
    {
        if(!is_string($format)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Format must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($format === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Format cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return strtoupper($format);
    }
    public static function product($product)
    {
        if(!is_string($product)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Product must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($product === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Product cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $product;
    }
    public static function pattern($pattern)
    {
        if(!is_string($pattern)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Pattern must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($pattern === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Pattern cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $pattern;
    }
}

?>